<!DOCTYPE html>
<html class="index_body">
<head lang="en">
    <meta charset="UTF-8">
    <title>优优车 - 账号管理</title>
    <meta http-equiv="X-UA-Compatible" content="IE=10">
    <link rel="stylesheet" href="/Public/mui/computer/css/bootstrap.css"/>
    <link rel="stylesheet" href="/Public/mui/computer/css/index.css"/>
    <link rel="stylesheet" href="/Public/mui/static/bower_components/sweetalert/dist/sweetalert.css">
</head>
<body class="index_body">
<include file="Lay:heder" />
<section id="section">
    <form action="">
     <div class="add_btn">
         <button type="button" provinceid="0" class="btn btn-primary downadd" aore="a">添加</button>
     </div>
     <table class="table table-hover all_table table-striped ">
         <thead class="all_thead">
         <tr>
             <th>姓名</th>
             <th>手机号</th>
             <th>员工编号</th>
             <th>职务</th>
             <th>省份</th>
             <th>城市</th>
             <th>操作</th>
         </tr>
         </thead>
         <tbody class="tbodyQ">
        <foreach  name="admins" item="v">
         <tr>
             <td class="tdt">{{$v['name']}}</td>
             <td class="tdt tpl_s" style="width: 17%;margin: 0 auto;">
                <span class="phone_edit_html">{{$v['tel']}}</span>
                 <input type="text" name="phone_edit" placeholder="请输入手机号" value="{{$v['tel']}}" class="showp hidep"/>
             </td>
             <td class="tdt">{{$v['usernum']}}</td>
             <td class="tdt tpl_s" style="width: 10%">
                <span class="positionauth">{{$zhiwei[$v['position']]}}</span>
                 <select name="auth_edit" defaultid="{{$v['position']}}" id="zw_post" class="showp hidep">
                     <option value="0" disabled="disabled" selected="selected">请选择</option>
                     <option value="1" {{$v['position']=='1'?selected:''}}>销售顾问</option>
                     <option value="2" {{$v['position']=='2'?selected:''}}>手续办理员</option>
                     <option value="3" {{$v['position']=='3'?selected:''}}>城市经理人</option>
                     <option value="4" {{$v['position']=='4'?selected:''}}>省总</option>
                     <option value="5" {{$v['position']=='5'?selected:''}}>风控人员</option>
                     <option value="7" {{$v['position']=='7'?selected:''}}>二级风控人员</option>
                     <option value="6" {{$v['position']=='6'?selected:''}}>财务人员</option>
                     <option value="501" {{$v['position']=='501'?selected:''}}>风控经理</option>
                     <option value="502" {{$v['position']=='502'?selected:''}}>风控副总</option>
                     <option value="10" {{$v['position']=='10'?selected:''}}>信息管理员</option>
                 </select>
             </td>
             <td class="tdt tpl_s" style="width: 10%">
                <span class="provinceidname"> {{$citydata[$v['provinceid']]['name']}} </span>
                 <select name="province_edit" provinceid="0" id="city_s" idc="{{$v['provinceid']}}" class="showp hidep province_edit">
                     <option value="0" disabled="disabled">请选择</option>
                 </select>
             </td>
             <td class="tdt tpl_s" style="width: 10%">
                <span class="cityname">{{$citydata[$v['provinceid']]['shi'][$v['cityid']]['name']}}</span>
                 <select name="city_edit" provinceid="0" idc="{{$v['cityid']}}" id="city" class="showp hidep city_edit">
                     <option value="0" disabled="disabled" selected="selected">请选择</option>
                 </select>
             </td>
             <input type="hidden" name="userid" value="{{$v['id']}}">
             <td>
                 <button type="button" class="btn btn-primary downedit" id="btn_b" onclick="selectcity(this)" aore="e" provinceid="0" style="margin: 8px 0">编辑</button>
             </td>
         </tr>
       </foreach>

         </tbody>
     </table>
    </form>
</section>

<div class="modal_t">
    <div class="modal_k">
        <form action="/Admin/login/InsertAdmin" id="ActionAddAdmin" method="post" enctype="multipart/form-data">
           <ul>
               <li>
                   <label>姓名</label>
                   <input type="text" name="username" placeholder="请输入的姓名"/>
               </li>
               <li>
                   <label>编号</label>
                   <input type="text" name="usernum"  placeholder="请入员工编号"/>
               </li>
               <li>
                   <label>手机号</label>
                   <input type="tel" name="phone" placeholder="请输入手机号" style="margin-left: 27px"/>
               </li>
               <li>
                   <label>职务</label>
                   <select name="auth" id="zhiwei">
                       <option value="0" disabled="disabled" selected="selected">请选择</option>
                       <option value="1">销售顾问</option>
                       <option value="2">手续办理员</option>
                       <option value="3">城市经理人</option>
                       <option value="4">省总</option>
                       <option value="5">风控人员</option>
                       <option value="7">二级风控人员</option>
                       <option value="6">财务人员</option>
                       <option value="501">风控经理</option>
                       <option value="502">风控副总</option>
                       <option value="10">信息管理员</option>
                   </select>
               </li>
               <li>
                   <label>省份</label>
                   <select name="province" id="sheng" provinceid="0">
                       <option value="0" disabled="disabled" selected="selected">请选择</option>
                   </select>
               </li>
               <li>
                   <label>城市</label>
                   <select name="city" id="shi" provinceid="0">
                       <option value="0" disabled="disabled" selected="selected">请选择</option>
                   </select>
               </li>
               <li>
                   <label>所属区域</label>
                   <input type="text" name="remarks"  placeholder="请入员工所属区域" style="margin-left: 14px"/>
               </li>
               <li class="bnt_add">
                   <input type="submit" class="btn btn-danger" value="添加" style="margin: 20px 0 20px 73px">
               </li>
           </ul>
        </form>
        <div class="close_a">
            <img src="/Public/mui/computer/img/close.png" alt=""/>
        </div>
    </div>
</div>
<script type="text/javascript" src="/Public/mui/static/js/jquery-3.2.0.min.js"></script>
<script type="text/javascript" src="/Public/mui/static/bower_components/sweetalert/dist/sweetalert.min.js"></script>
<script type="text/javascript" src="/Public/mui/computer/js/jquery.form.js"></script>
<script type="text/javascript" src="/Public/mui/computer/js/functions.js"></script>
<script type="text/javascript" src="/Public/mui/computer/js/addadmin.js"></script>
<script src="/Public/mui/computer/js/back.js"></script>
<script>
    $(".add_btn>.btn").on("click",function(){
        $(".modal_t").show();
    });
    $(".close_a").on("click",function(){
        $(".modal_t").hide();
    })
</script>
</body>
</html>